<?php
class Home extends Controller{
    function Home(){
        parent::Controller();
    }
    
    function index(){
        if(!$this->authniter->isLogged())
            $this->login();
        else
            $this->front();
    }

    function front(){
        render('home/index');
    }

    function login(){
        render("home/login",null,"login");
    }

    function index_admin(){
        render('home/index');
    }
}